Initial doc changes - #102
Draft
cliulucien wants to merge 12 commits into
Draft
cliulucien wants to merge 12 commits into
cliulucien wants to merge 12 commits into
Conversation
cliulucien
marked this pull request as draft
September 23, 2026 09:58
…tyLab.py into initial_doc_changes
…ot faimliar with FPM.
Contributor
|
HI @cliulucien, looks like some serious bugs. If you see them, please report it separately under issues and if you fix those, please do so with a separate PR tagging those issues. |
added 2 commits
September 25, 2026 16:56
- implement dtype matching used by convert2single() - return linear and area overlap metrics from getOverlap() - use normalized probe-amplitude autocorrelation for area-overlap estimation
| The method requires JAX, which is imported when the function is | ||
| called. | ||
| """ | ||
| import jax |
Contributor
There was a problem hiding this comment.
How did jax get here? If this requires some AD stuff, we need to rethink how to place this function correctly. Looking at the code below, we can use existing dependencies for this. Maybe if you could add this as an issue along with other issues/bugs you found, that would be great.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up issues noticed during documentation review
ExperimentalData.py
binData()updates the ptychogram but does not refresh derived detector/data quantities via_setData(). It may also need to update the effective detector pixel sizedxdafter binning, depending on the intended convention.relative_intensity()is documented as comparing a frame to the brightest one, but the implementation normalizes bymean + 2 * stdinstead of the maximum intensity.Reconstruction.py
initializeObject()andinitializeProbe()and may deserve cleanup.expand_npsminload_probe()is currently unused. Determine whether this is legacy API or an unfinished feature._center_probe_angle(): np.squeeze(self.probe)[0]becomes 1D for single-mode probes but 2D for multi-mode probes.saveResults(): Use context managers consistently for FPM and probe-stack output to ensure HDF5 files are closed.I objectandI probestore amplitudes (abs) rather than intensities (abs**2).